<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/basecore/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>app</title>
		<%@ include file="/basecore/meta.jsp"%>			
	</head>
	<body>		
		<div class="page-navigate">
			<img src="${contextPath}/webresource/images/meta/application.jpg">
			<span>修改密码</span>
		</div>
		 <%
		 String code=request.getParameter("code");
		 if(code!=null&&code.equals("1")){
			%>
			<span color="blue">密码修改成功。</span>
			<% 
		 }
		%>
		<form name="appForm" id="appForm" action="changePasswordController.wit"
			method="post">
			<input name="changepassword" value="true" type="hidden"/>
			<div align=right class="fix-operation">
				<a href="#" onclick="if(FormValidator.validate(appForm,3)){appForm.submit();}" accesskey="s" title="保存数据">
					<img
						src="${contextPath}/webresource/images/toolbar/iconSaveAndRelation.png">
					保存(S)</a>
				<a href="javascript:document.appForm.reset();" accesskey="r"
					title="取消更改"> <img
						src="${contextPath}/webresource/images/toolbar/iconUndo.png">
					取消更改(R)</a>				
			</div>
			<input type="hidden" name="id" value="${data.id}">
			<div id="editFormDiv" style="margin-left: 30px; margin-top: 30px;">
				<table border=0 width="100%" class="formtable"
					style="MARGIN-TOP: 30px;">
					<tbody>	
						<tr class="table-tr-odd">
							<td>
								<label for="oldpassword">
									原密码
								</label>
							</td>
							<td>
								<input type="password" name="oldpassword"
								dataType="English" msg="密码不符合安全规则，只允许英文字母和数字组成"
								 require="true" class="input-password"
								>								
							</td>
						</tr>					
						<tr class="table-tr-odd">
							<td>
								<label for="password">
									密码
								</label>
							</td>
							<td>
								<input type="password" name="password" value="${data.password}"
								 dataType="English" msg="密码不符合安全规则，只允许英文字母和数字组成"
								 require="true" class="input-password"
								>
								<span id="passworderror" name="passworderror"></span>
							</td>
						</tr>
						<tr class="table-tr-odd">
							<td>
								<label for="password2">
									重复密码
								</label>
							</td>
							<td>
								<input type="password" name="password2" value="${data.password}"
								dataType="Repeat" to="password" msg="两次输入的密码不一致"
								class="input-password">
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</form>		
	</body>
</html>
